package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activityseries"
    ,catalog="zutuan_prot"
)
public class JujuActivityseries  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivityseries";
	public static final String TABLE_NAME="juju_activityseries";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_name = "name"; 
	public static final String P_firstposturl = "firstposturl"; 
	public static final String P_organid = "organid"; 
	public static final String P_creater = "creater"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_status = "status"; 
	public static final String P_seriescount = "seriescount"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_updatetime = "updatetime"; 
	public static final String P_type = "type"; 
	public static final String P_cityid = "cityid"; 

     private String id;
     private String name;
     private String firstposturl;
     private String organid;
     private String creater;
     private Integer deleflag;
     private Integer status;
     private Integer seriescount;
     private Long createtime;
     private Long updatetime;
     private Integer type;
     private String cityid;

    public JujuActivityseries() {
    }
	
    public JujuActivityseries(String id) {
        this.id = id;
    }
    public JujuActivityseries(String id, String name, String firstposturl, String organid, String creater, Integer deleflag, Integer status, Integer seriescount, Long createtime, Long updatetime, Integer type, String cityid) {
        this.id = id;
        this.name = name;
        this.firstposturl = firstposturl;
        this.organid = organid;
        this.creater = creater;
        this.deleflag = deleflag;
        this.status = status;
        this.seriescount = seriescount;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.type = type;
        this.cityid = cityid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="NAME", length=20)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="FIRSTPOSTURL", length=1000)
    public String getFirstposturl() {
        return this.firstposturl;
    }
    
    public void setFirstposturl(String firstposturl) {
        this.firstposturl = firstposturl;
    }
    
    @Column(name="ORGANID", length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }
    
    @Column(name="CREATER", length=36)
    public String getCreater() {
        return this.creater;
    }
    
    public void setCreater(String creater) {
        this.creater = creater;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="STATUS")
    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="SERIESCOUNT")
    public Integer getSeriescount() {
        return this.seriescount;
    }
    
    public void setSeriescount(Integer seriescount) {
        this.seriescount = seriescount;
    }
    
    @Column(name="CREATETIME")
    public Long getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="UPDATETIME")
    public Long getUpdatetime() {
        return this.updatetime;
    }
    
    public void setUpdatetime(Long updatetime) {
        this.updatetime = updatetime;
    }
    
    @Column(name="type")
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    @Column(name="cityid", length=36)
    public String getCityid() {
        return this.cityid;
    }
    
    public void setCityid(String cityid) {
        this.cityid = cityid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


